import sys, Xml, InterfaceRB, os, re
    
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import QtCore, QtGui 

#!/usr/bin/env python

#from testapp_ui import TestAppUI


if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    
    Dialog = QtGui.QDialog()
    #ui = Ui_Dialog()
    
    dirdialog = QtGui.QFileDialog(Dialog,"Export Package")
    dirdialog.setFileMode(QtGui.QFileDialog.DirectoryOnly)
    dirdialog.show()
    if not( dirdialog.exec_()): 
        dir = str(dirdialog.selectedFiles()[0])
    dir = str(dirdialog.selectedFiles()[0])
    print dir
    #Dialog.show()
    sys.exit(app.exec_())
    #heh = QFileDialog
    #heh.setFileMode(QFileDialog.AnyFile)
    #fn = QFileDialog.getOpenFileName()
